package com.mofum.cloud.core.handler.impl;

import com.mofum.cloud.core.handler.InstructionsHandlerPool;
import com.mofum.cloud.core.model.RuntimeContext;
import com.mofum.cloud.core.model.RuntimeContextAware;

/**
 * 带运行环境指令操作池
 * ===================================================================
 * <p> 运行环境指令操作池，注册该池的指令将共享一个环境池变量（类似指令集）
 * ===================================================================
 *
 * @author yumi@omuao.com
 */
public class RuntimeInstructionsHandlerPoolImpl extends InstructionsHandlerPoolAdapter implements InstructionsHandlerPool, RuntimeContextAware {

    /**
     * 运行环境上下文
     */
    private RuntimeContext runtimeContext = null;

    @Override
    public RuntimeContext getRuntimeContext() {
        return runtimeContext;
    }

    @Override
    public void setRuntimeContext(RuntimeContext runtimeContext) {
        this.runtimeContext = runtimeContext;
    }
}
